<template>
  <div>
    <!-- 对话框 -->
    <el-dialog
      :title="title"
      :visible.sync="isShow"
      width="50%"
      :close-on-click-modal="false"
    >
      <slot></slot>
      <span slot="footer" class="dialog-footer">
        <el-button @click="CancelPopup">取 消</el-button>
        <el-button type="primary" @click="surePopup"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      isShow: String,
      title:String
    },
  },
  methods:{
    surePopup(){
        this.$emit('surePopup')
    },
    CancelPopup(){
        this.$emit('CancelPopup')
    }
  }
};
</script>

<style></style>
